package testDemo;
class Animal {
    String name;
    int age;
    float weight;

    public void eat() {
        System.out.println(this.name + "正在吃饭！！！");
    }

    public void sleep() {
        System.out.println(this.name + "正在睡觉！！！");
    }
}

class Dog extends Animal {

    public void bark() {
        System.out.println(this.name + "汪汪汪~~~");
    }
    public void eat(){
        System.out.println(this.name + "吃狗粮~~~");
    }
}

class Cat extends Animal {
    public void bark() {
        System.out.println(this.name + "喵喵喵~~~");
    }
}

public class test1 {
    public static void main(String[] args) {
        Animal animals = new Dog();
        animals.eat();
    }
}
